package com.boss.common.entity;

import java.util.HashMap;
import java.util.Map;

/**
 * <br>Title:流程数据DTO
 * <br>Description:流程数据DTO
 * <br>Author: 朱孝恒
 * <br>Date: 2019年12月14日 15:20
 */
public class WfDataDTO extends HashMap {
    /**
     * 业务key
     */
    private String businessKey;
    /**
     * 线程变量
     */
    private Map<String,Object> variables = new HashMap<>();


    public String getBusinessKey() {
        return (String) this.get("businessKey");
    }

    public void setBusinessKey(String businessKey) {
        this.put("businessKey",businessKey);
    }

    public Map<String, Object> getVariables() {
        return (Map<String, Object>) this.get("variables");
    }

    public void setVariables(Map<String, Object> variables) {
        this.put("variables",variables);
    }

    @Override
    public String toString() {
        return "WfDataDTO{" +
                "businessKey='" + businessKey + '\'' +
                ", variables=" + variables +
                '}';
    }
}
